package com.cs.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.io.Serial;
import java.util.Date;
import java.util.List;

/**
 * @Author：bbdf
 * @Package：com.cs.domain
 * @Project：RuoYi-Cloud
 * @name：CSCategory
 * @Date：2024-11-11 11:58
 * @Filename：CSCategory
 */

public class CSCategory extends BaseEntity {
    @Serial
    private static final long serialVersionUID = 9043412493015070216L;
    @Excel(name = "分类Id")
    Integer cId;
    @Excel(name = "分类名")
    String cName;
    @Excel(name = "分类父级Id")
    Integer pId;
    @Excel(name = "操作时间")
    Date updateTime;
    @Excel(name = "逻辑删除")
    Integer isDeleted;
    @Excel(name = "子数据")
    List<CSCategory> children;
    public CSCategory() {
    }


    public CSCategory(Integer cId, String cName, Integer pId, Date updateTime, Integer isDeleted, List<CSCategory> children) {
        this.cId = cId;
        this.cName = cName;
        this.pId = pId;
        this.updateTime = updateTime;
        this.isDeleted = isDeleted;
        this.children = children;
    }


    public List<CSCategory> getChildren() {
        return children;
    }

    public void setChildren(List<CSCategory> children) {
        this.children = children;
    }

    public Integer getcId() {
        return cId;
    }

    public void setcId(Integer cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "CSCategory{" +
                "cId=" + cId +
                ", cName='" + cName + '\'' +
                ", pId=" + pId +
                ", updateTime=" + updateTime +
                ", isDeleted=" + isDeleted +
                ", children=" + children +
                '}';
    }

}
